-- GENERATED SPELL FOR [Converted Hero] --


function spell0_32255(pUnit, Event) --@Grip of the Scourge,n/a--
pUnit:FullCastSpellOnTarget(60231,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32255', 630, 1)
end

function spell1_32255(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(61578,pUnit)
pUnit:RegisterEvent('Sorts_32255', 8332, 1)
end

function spell2_32255(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32255', 5270, 1)
end

function Sorts_32255(pUnit, Event)
local choix_sorts_32255 = math.random(0, 2)
if choix_sorts_32255 == 0 then
pUnit:RegisterEvent('spell0_32255', 1, 1)
end
if choix_sorts_32255 == 1 then
pUnit:RegisterEvent('spell1_32255', 1, 1)
end
if choix_sorts_32255 == 2 then
pUnit:RegisterEvent('spell2_32255', 1, 1)
end
end

function mob32255_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32255', math.random(1500, 3000), 1)
end

function mob32255_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32255_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32255_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32255, 1, 'mob32255_Action')
RegisterUnitEvent(32255, 2, 'mob32255_Leave')
RegisterUnitEvent(32255, 3, 'mob32255_Kill')
RegisterUnitEvent(32255, 4, 'mob32255_Die')
